<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="navBar">
	<c:if test="${userName != null}">
		Welcome, ${userName}! &nbsp;&nbsp;&nbsp;  
	</c:if>
 	<a href="index.jsp">Home</a> |
	<a href="webaction?action=browse">Browse</a> |
	<c:choose>
		<c:when test="${empty userName}">
			<a href="webaction?action=login">Log In</a>
		</c:when>
		<c:otherwise>
			<a href="webaction?action=suggest">Suggest</a> |
			<a href="webaction?action=play_picturephone">Play</a> |
			<a href="logout.jsp">Log Out</a>
		</c:otherwise>	
	</c:choose>
</div>
<br />